package cn.skyquant.quant4j.api.strategy;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class StrategyTestCloseDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    public int id;
    public Date thedate;
    public String symbol;
    public Double amount;
    public Double closePrice;
    public Double profit;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof StrategyTestCloseDTO)) return false;
        StrategyTestCloseDTO that = (StrategyTestCloseDTO) o;
        return id == that.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
